package lab02.test01;

public class Address {
        private String state;
        private String province;
        private String city;
        private String street;
        private String zipCode;

        public Address() {}

    @Override
    public String toString() {
        return state + "," + province + "," + city + "," + street  +"," + zipCode;
    }

    public Address(String state, String province, String city, String street, String zcode) {
        this.state = state;
        this.province = province;
        this.city = city;
        this.street = street;
        this.zipCode = zcode;
    }

    public String getState() {
            return state;
        }

        public void setState(String state) {
            this.state = state;
        }

        public String getProvince() {
            return province;
        }

        public void setProvince(String province) {
            this.province = province;
        }

        public String getCity() {
            return city;
        }

        public void setCity(String city) {
            this.city = city;
        }

        public String getStreet(String longquna) {
            return street;
        }

        public void setStreet(String street) {
            this.street = street;
        }

        public String getZcode() {
            return zipCode;
        }

        public void setZcode(String zcode) {

            this.zipCode = zcode;
        }
//        public void printf(){//用方法输出信息，内部调用，不用传参数
//            System.out.println("i'm come from" + "\t" + state + "\t" + province + "\t" + city + "\t" + street + "\n" + "my zipcode is：" + zipCode);
//        }
}
